package com.knowledge.business.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.knowledge.common.annotation.Excel;
import com.knowledge.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 产品信息对象 t_product
 *
 * @author zhaoyk
 * @date 2025-09-15
 */
@Data
@TableName(value = "t_product")
@EqualsAndHashCode(callSuper = true)
public class TProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "类别Id"
     */
    @Excel(name = "类别Id")
    private String typeId;
    /**
     * "产品名称"
     */
    @Excel(name = "产品名称")
    private String name;
    /**
     * "价格"
     */
    @Excel(name = "价格")
    private BigDecimal price;
    /**
     * "简介"
     */
    @Excel(name = "简介")
    private String info;
    /**
     * "产品特点"
     */
    @Excel(name = "产品特点")
    private String feature;
    /**
     * "产品规格"
     */
    @Excel(name = "产品规格")
    private String gg;
    /**
     * "产品图片"
     */
    @Excel(name = "产品图片")
    private String image;
    /**
     * "是否上架"
     */
    @Excel(name = "是否上架")
    private String status;

    /**
     * "分类名称"
     */
    @Excel(name = "分类名称")
    @TableField(exist = false)
    private String typeName;


}
